package com.rajesh.messageservice.bean;

import net.sqlcipher.Cursor;

public class Contact extends WxDbBean {
	private String targetId;
	private String friendId;
	private String nickname;

	public String getTargetId(){ return targetId; }
	public void setTargetId(String targetId) { this.targetId = targetId; }

	public String getFriendId(){ return friendId; }
	public void setFriendId(String friendId) { this.friendId = friendId; }

	public String getNickname(){ return nickname; }
	public void setNickname(String nickname) { this.nickname = nickname; }

	public Contact(){}

	@Override
	public WxDbBean translate(Cursor cursor) {
		if(cursor != null){
			this.targetId = cursor.getString(cursor.getColumnIndex("targetId"));
			this.friendId = cursor.getString(cursor.getColumnIndex("friendId"));
			this.nickname = cursor.getString(cursor.getColumnIndex("nickname"));
		}
		return this;
	}
}
